<%@page import="org.apache.commons.lang3.StringUtils"%>
<%@ page language="java"
	import="java.util.*,com.cci.kangdao.dao.model.*,com.cci.kangdao.utilTool.*,com.github.pagehelper.*"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
	<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
List<IntegralSetupT> integralSetup=(List<IntegralSetupT>)request.getAttribute("model");
%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	    <link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
	    <script src="js/jquery.min.js?v=2.1.4"></script>
	    <style type="text/css">
	    	  thead th{
          text-align: center;
        }
        table{
          text-align: center;
        }
        tbody tr {
          height: 70px;
        }
        .table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th{
          vertical-align: middle;
        }
        @media only screen and (max-device-width:768px ) {
          .table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th{
            font-size: 26px;
          }
          .table-responsive{
            padding: 0;
          }
        }
        tr td:nth-child(1){
          width: 100px;
        }
        tr td:nth-child(2){
          width: 200px;
        }
        tr td:nth-child(3){
          width: 150px;
        }
        tr td:nth-child(4){
          width: 100px;
        }
        tr td:nth-child(5){
          width: 300px;
        }
	    </style>
	</head>
	<body>
			<div class="table-responsive">
				<table class="table table-bordered table-hover .table-condensed">
					<thead>
						<th >序号</th>
						<th>积分途径</th>
						<th>获得积分</th>
						<th>次数/日</th>
						<th>规则</th>
					</thead>
					<tbody>
					<% if(null!=integralSetup && integralSetup.size()>0){
									for(IntegralSetupT bean : integralSetup){
							 %>
								<tr>
							<td class=""><%=bean.getID()+"" %></td>
							<td class=""><%=bean.getIntegralChannel()+""%></td>
							<td class=""><%=bean.getIntegralNum()+"" %></td>
							<td class=""><%=bean.getDayNum()+"" %></td>
							<td class=""><%=bean.getDescription()+"" %></td>
								</tr>
							<%
									}
							}
							%>
					</tbody>
					
				</table>
			</div>
		<script type="text/javascript">
			$(function(){
				$.ajax({
					type:'post',
					url:'getIntegralSetup.aspx',
					dateType:'json',
					success:function(){}
				})
			})
		</script>
	</body>
</html>
